export const FormDialog = {
  mixins: [
    window.WjcEasyElementUI.formPopupMixin({
      getDialogAttrs() {
        return { title: '表单弹框', width: '450px' }
      },
      formOptions() {
        return {
          items: [
            {
              label: '下拉框',
              prop: 'dollToyId',
              component: 'select',
              dicts: [
                { label: '选项1', value: 1 },
                { label: '选项2', value: 2 },
              ],
              required: true,
            },
            {
              label: '输入框',
              prop: 'dollToyNum',
              component: 'input',
              options: { type: 'number' },
              required: true,
            },
          ],
        }
      },
      async onSubmit() {
        await new Promise(r => {
          setTimeout(r, 2500)
        })
      },
    })
  ]
}